﻿
/* 
 * Since 2008 - 2012
 */
package com.hh.bss.project.entity;

import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import com.hh.bss.base.*;
import com.hh.bss.common.page.*;
import com.hh.bss.common.page.impl.*;
import com.hh.bss.project.dao.*;
import com.hh.bss.project.entity.*;
import com.hh.bss.project.service.*;
import com.hh.bss.project.vo.query.*;
import com.hh.bss.util.*;





public class SearchProjectCcList extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "SearchProjectCcList";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_CALL_DT = "callDt";
	public static final String ALIAS_ACCOUNT = "account";
	public static final String ALIAS_CALLER = "caller";
	public static final String ALIAS_CALLNO = "callno";
	public static final String ALIAS_CALL_STATUS = "callStatus";
	public static final String ALIAS_CC_RESULT = "ccResult";
	public static final String ALIAS_REF_CVID = "refCvid";
	public static final String ALIAS_COMMENT = "comment";
	public static final String ALIAS_CREATOR = "creator";
	public static final String ALIAS_CREATE_DT = "createDt";
	public static final String ALIAS_MODIFIER = "modifier";
	public static final String ALIAS_MODIFIED_DT = "modifiedDt";
	
	//date formats
	public static final String FORMAT_CALL_DT = DATE_TIME_FORMAT;
	public static final String FORMAT_CREATE_DT = DATE_FORMAT;
	public static final String FORMAT_MODIFIED_DT = DATE_FORMAT;
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	
	private java.lang.Integer id;
	
	private java.util.Date callDt;
	private String callDtStr;
	private String ccInfo;
	

	public String getCcInfo() {
		return ccInfo;
	}

	public void setCcInfo(String ccInfo) {
		this.ccInfo = ccInfo;
	}

	public String getCallDtStr() {
		return callDtStr;
	}

	public void setCallDtStr(String callDtStr) {
		this.callDtStr = callDtStr;
	}

	@NotBlank @Length(max=50)
	private java.lang.String account;
	@Length(max=50)
	private java.lang.String caller;
	@Length(max=50)
	private java.lang.String callno;
	@NotNull @Max(32767)
	private java.lang.Integer callStatus;
	@NotNull @Max(32767)
	private java.lang.Integer ccResult;
	private java.lang.String ccType;
	private String crmInfo;
	public String getCrmInfo() {
		return crmInfo;
	}

	public void setCrmInfo(String crmInfo) {
		this.crmInfo = crmInfo;
	}

	public java.lang.String getCcType() {
		return ccType;
	}

	public void setCcType(java.lang.String ccType) {
		this.ccType = ccType;
	}

	private java.lang.Integer refCvid;
	@Length(max=255)
	private java.lang.String comment;
	@Length(max=50)
	private java.lang.String creator;
	
	private java.util.Date createDt;
	@Length(max=50)
	private java.lang.String modifier;
	
	private java.util.Date modifiedDt;
	//columns END
    private Integer projectId;
	public Integer getProjectId() {
		return projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}

	public SearchProjectCcList(){
	}

	public SearchProjectCcList(
		java.lang.Integer id
	){
		this.id = id;
	}

	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.Integer getId() {
		return this.id;
	}
	public String getCallDtString() {
		return DateConvertUtils.format(getCallDt(), FORMAT_CALL_DT);
	}
	public void setCallDtString(String value) {
		setCallDt(DateConvertUtils.parse(value, FORMAT_CALL_DT,java.util.Date.class));
	}
	
	public void setCallDt(java.util.Date value) {
		this.callDt = value;
	}
	
	public java.util.Date getCallDt() {
		return this.callDt;
	}
	public void setAccount(java.lang.String value) {
		this.account = value;
	}
	
	public java.lang.String getAccount() {
		return this.account;
	}
	public void setCaller(java.lang.String value) {
		this.caller = value;
	}
	
	public java.lang.String getCaller() {
		return this.caller;
	}
	public void setCallno(java.lang.String value) {
		this.callno = value;
	}
	
	public java.lang.String getCallno() {
		return this.callno;
	}
	public void setCallStatus(Integer value) {
		this.callStatus = value;
	}
	
	public Integer getCallStatus() {
		return this.callStatus;
	}
	public void setCcResult(Integer value) {
		this.ccResult = value;
	}
	
	public Integer getCcResult() {
		return this.ccResult;
	}
	public void setRefCvid(java.lang.Integer value) {
		this.refCvid = value;
	}
	
	public java.lang.Integer getRefCvid() {
		return this.refCvid;
	}
	public void setComment(java.lang.String value) {
		this.comment = value;
	}
	
	public java.lang.String getComment() {
		return this.comment;
	}
	public void setCreator(java.lang.String value) {
		this.creator = value;
	}
	
	public java.lang.String getCreator() {
		return this.creator;
	}
	public String getCreateDtString() {
		return DateConvertUtils.format(getCreateDt(), FORMAT_CREATE_DT);
	}
	public void setCreateDtString(String value) {
		setCreateDt(DateConvertUtils.parse(value, FORMAT_CREATE_DT,java.util.Date.class));
	}
	
	public void setCreateDt(java.util.Date value) {
		this.createDt = value;
	}
	
	public java.util.Date getCreateDt() {
		return this.createDt;
	}
	public void setModifier(java.lang.String value) {
		this.modifier = value;
	}
	
	public java.lang.String getModifier() {
		return this.modifier;
	}
	public String getModifiedDtString() {
		return DateConvertUtils.format(getModifiedDt(), FORMAT_MODIFIED_DT);
	}
	public void setModifiedDtString(String value) {
		setModifiedDt(DateConvertUtils.parse(value, FORMAT_MODIFIED_DT,java.util.Date.class));
	}
	
	public void setModifiedDt(java.util.Date value) {
		this.modifiedDt = value;
	}
	
	public java.util.Date getModifiedDt() {
		return this.modifiedDt;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("CallDt",getCallDt())
			.append("Account",getAccount())
			.append("Caller",getCaller())
			.append("Callno",getCallno())
			.append("CallStatus",getCallStatus())
			.append("CcResult",getCcResult())
			.append("RefCvid",getRefCvid())
			.append("Comment",getComment())
			.append("Creator",getCreator())
			.append("CreateDt",getCreateDt())
			.append("Modifier",getModifier())
			.append("ModifiedDt",getModifiedDt())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof SearchProjectCcList == false) return false;
		if(this == obj) return true;
		SearchProjectCcList other = (SearchProjectCcList)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

